package com.daisuxia.payRoute;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;

import com.daisuxia.web.pojo.Repayment;
import com.daisuxia.web.pojo.User;
import com.daisuxia.web.pojo.UserCardInfo;

/**
 * Created by dhl on 2017/5/18.
 */

public interface IPayCommons {
	//当前处理不成功, 设置下一个支付
	void setNextSuccessor(IPayCommons iPayCommons);


	/**
	 * 处理代扣
	 * @param re 借款信息
	 * @param user 借款人
	 * @param userCardInfo 借款人卡信息
	 * @param transId 商户代扣订单号
	 * @return
	 * @throws IOException
	 * @throws URISyntaxException
	 */
	Map handleOrder(Repayment re,User user, UserCardInfo userCardInfo, String transId) throws IOException, URISyntaxException;

}
